#pragma once
#include "afxext.h"

class myStatusBar : public CStatusBar
{
public:
	myStatusBar(void);
	~myStatusBar(void);

	CArray<CString,CString> Itemtext;
	CArray<int,int>	TextColor;
	int	StartNum[3]; //Offset from the beginning of the text to the beginning of number
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CColoredStatusBarCtrl)
	void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

	//}}AFX_VIRTUAL
protected:
	//{{AFX_MSG(myStatusBar)
	//}}AFX_MSG

	afx_msg void OnLButtonDown(UINT nFlags, CPoint pt);

	DECLARE_MESSAGE_MAP()
public:
	CString AddItemText(CString text, int NewTextColor );
	void	AddStartNum(int Num);
	void DestroyAllText(void);
};
